package com.fenghongzhang.day006;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

import com.kd.easybarrage.Barrage;
import com.kd.easybarrage.BarrageView;

public class Main2Activity extends AppCompatActivity {
    private BarrageView barrage;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);


        barrage = (BarrageView) findViewById(R.id.barrage);

        barrage.addBarrage(new Barrage("我是弹幕"));
    }
}
